<?php
class Accountsstatus_Model_Accountsstatus implements Accountsstatus_Model_Mainable {
    
    private $action_handler;
    
    public function main(array $variables = null) {
        if(isset($variables['get']['page']) && !is_null($variables['get']['page']) && ($variables['get']['page'] != '')){
            $this->action_handler = new Accountsstatus_Model_Pagedecision;
            return $this->action_handler->main($variables);
        }
        else {
            $page['template'] = WEB_ROOT_FOLDER."accountsstatus/views/statuses.php";
            $this->action_handler = new Accountsstatus_Data_Getaccountsstatus;
            $page['content'] = $this->action_handler->main($variables);
            return $page;
        }
    }

}
